# coding=utf-8

#===================================================
# ip地址
IP = '106.53.214.132'
# 登录地址
URL = 'https://'+IP+'/index.html#/'
# 验证码接口
CODE_URL = 'https://'+IP+':8081'+'/cas/captcha.jpg'
# 用户名
NAME = 'admin'
# 密码
PASSWORD = 'tbds123456'

#==================UI_Element========================
# 用户名输入元素
NAME_ELE = '//*[@name="username"]'
# 密码输入元素
PASSWORD_ELE = '//*[@name="password"]'
# 验证码保存路径(暂时不能修改)
CODE_PATH = './authcode/test.jpg'
# 验证码输入元素
AUTHCODE_ELE = '//*[@name="authcode"]'
# 登录按钮元素
LOGIN_BUTTON_ELE = '//*[@id="login_btn"]'
# 登录后验证用户名元素
LOGIN_NAME_ELE = '//*[contains(text(),'+NAME+')]'

#==================================================
# 是否启动无头模式
HEADLESS = True
# 登录失败最大次数
LOGIN_COUNT = 5
